package com.wxproject.demo.Service;

import com.wxproject.demo.Entity.AO.ChatMessageAO;
import com.wxproject.demo.Entity.AO.ChatUserAO;
import com.wxproject.demo.Entity.AO.SenderAO;
import com.wxproject.demo.Entity.VO.ChatMessageVO;
import com.wxproject.demo.Entity.VO.ChatRoomRecord;
import com.wxproject.demo.Entity.VO.RoomVO;

import javax.websocket.Session;
import java.util.List;
import java.util.Set;

/**
 * @author zqf
 * @date 2021/4/5 22:57
 * @description
 */
public interface ChatService {
    Integer saveMessage(SenderAO senderAO);

    List<ChatMessageVO> getChatMessage(ChatUserAO chatUserAO);

    List<String> getAllRoom();

    String getRoomIdByTypeId(String typeId);

    List<ChatRoomRecord> getChatRoomRecord(String roomId);

    Integer saveChatRoomRecord(ChatMessageAO chatMessageAO);

    Integer getRoomName(String roomName);

    String getRoomNameByTypeId(String typeId);

    List<RoomVO> getSocketRoom();

    String getRoomNameByRoomId(String roomId);
}
